package com.wnxy.pms.order.client;

import com.wnxy.pms.common.api.Result;
import com.wnxy.pms.order.client.dto.OrderDto;
import com.wnxy.pms.order.client.vo.OrderVo;
import io.swagger.annotations.ApiParam;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

@FeignClient("order-service")
public interface OrderFeginClient {
    @PostMapping("/auth/order")
    Result createOrder(@RequestBody OrderDto orderDto);

    @PutMapping("/auth/order/{orderSn}")
    Result update(@PathVariable("orderSn") String orderSn);

    @GetMapping("/auth/order/{orderSn}")
    Result<OrderVo> getOrderBySn(@PathVariable("orderSn") String orderSn);
}
